#!/usr/bin/python
# coding=utf-8

import sys
import os



if len(sys.argv) == 1:
    print "Please enter your item name?"
    sys.exit()


module_name = sys.argv[1]


playbook = "plays/" + module_name + "/playbook.yml"
inventory = "plays/" + module_name + "/inventories"



command = "ansible-playbook " + playbook + " -i " + inventory
print command
os.system(command)












